package com.casems.mapper;

import com.casems.commons.dto.CaseData;
import com.casems.commons.dto.CasesDTO;
import com.casems.entity.Cases;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.casems.entity.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tch
 * @since 2023-05-17
 */
public interface CasesMapper extends BaseMapper<Cases> {
    List<CasesDTO> getCasesByUserId(int userId);

    List<CasesDTO> getCasesByUser(User user);

    Integer getCaseDailyUp();

    List<CaseData> getCasesMonthCount();

    List<CaseData> getEfficacyCount();
}
